package com.bm.server.dao;

import com.bm.common.dto.RoomDto;
import com.bm.common.vo.R;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * .=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
 * |                     ______                     |
 * |                  .-"      "-.                  |
 * |                 /            \                 |
 * |     _          |              |          _     |
 * |    ( \         |,  .-.  .-.  ,|         / )    |
 * |     > "=._     | )(__/  \__)( |     _.=" <     |
 * |    (_/"=._"=._ |/     /\     \| _.="_.="\_)    |
 * |           "=._"(_     ^^     _)"_.="           |
 * |               "=\__|IIIIII|__/="               |
 * |              _.="| \IIIIII/ |"=._              |
 * |    _     _.="_.="\          /"=._"=._     _    |
 * |   ( \_.="_.="     `--------`     "=._"=._/ )   |
 * |    > _.="                            "=._ <    |
 * |   (_/                                    \_)   |
 * |                                                |
 * '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='
 * -----------------代码的搬运工-----------------
 *
 * @Date: 2022/07/20/21:38
 */
public interface RoomDao {
    @Select("SELECT t_dogkill.uid, t_dogkill.roomid, t_room_head.roomname FROM t_dogkill,t_room_head WHERE t_dogkill.roomid = t_room_head.roomid AND t_dogkill.uid =#{uid}")
    List<RoomDto> selectByUid(int uid);
}
